package pageObject;

import java.util.concurrent.TimeUnit;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;

public class TC01 {
	
	WebDriver driver;
	
	@BeforeMethod
	public void launchBrowser(){
		driver = new FirefoxDriver();
		
		driver.manage().window().maximize();
		
		driver.manage().timeouts().implicitlyWait(45, TimeUnit.SECONDS);
	}
	
	@Test
	public void atTest1() throws Exception{
		driver.get("http://noida.quikr.com");
		
		new HomePage(driver)
		   .searchString()
		   .postFreeAd()
		   .carAndBikesMouseOver()
		   .clickOnCars()
		   .uploadAd();
	}
	
	/*@Test
	public void atTest2(){
		driver.get("http://noida.quikr.com");
		
		new HomePage(driver)
		.searchString()
		.createFreeAlrt()
		
	}*/
	
	
	@AfterMethod
	public void closeBrowser(){
		//driver.quit();
	}

}
